home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
xceedzip
/
XCEEDTOO.BAS
< prev
next >
Wrap
BASIC Source File
|
1999-04-26
|
18KB
|
261 lines
Attribute VB_Name = "XceedTools"
'==================================================================
' Description: Module for Getting Started Sample Application
' Copyright: ⌐ Copyright 1995-1999 Xceed Software Inc.
' All Rights Reserved.
'==================================================================
Option Explicit
'------------------------------------------------------------------------------------
' Public constants
'------------------------------------------------------------------------------------
Public Const cBasePathHint = "BasePath property:" & vbCrLf & _
"This path determines where entries in the FilesToProcess and FilesToExclude " & _
"properties are relative to. The base path never appears in the zip file, " & _
"even if PreservePaths = True. Only the portion of the path and filename specified " & _
"in the FilesToProcess property is actually stored in the zip file. Therefore, " & _
"BasePath helps you control what portions of paths are stored in the zip file. " & _
"(The BasePath property is irrelevant when you are using absolute paths)"
Public Const cFilesToProcessHint = "FilesToProcess property:" & vbCrLf & _
"Multiline string that contains all the filenames and/or file masks " & _
"to be processed (zipped, unzipped, etc). If you entered a path in the " & _
"BasePath property, all entries with relative paths will be relative to " & _
"the specified base path. The pipe character '|' can be used instead of the linefeed " & _
"to separate entries for the FilesToProcess property."
Public Const cFilesToExcludeHint = "FilesToExclude property:" & vbCrLf & _
"Multiline string that contains all filenames and/or file masks " & _
"to exclude from the files to be processed by the FilesToProcess " & _
"property. These entries are also relative to the path specified in the " & _
"BasePath property if its not empty."
Public Const cProcessSubfolderHint = "ProcessSubFolders property:" & vbCrLf & _
"If set to True, the contents of all encoutered subfolders will be " & _
"processed."
Public Const cZipFilenameHint = "ZipFilename property:" & vbCrLf & _
"The filename of the zip file to work with. When unzipping, this file must " & _
"exist. When zipping, if the file exists, it's updated. Otherwise, it is " & _
"created. You must enter an absolute path for this property. The BasePath " & _
"property does not interfere with the ZipFilename property."
Public Const cPreservePathsHint = "PreservePaths property:" & vbCrLf & _
"If set to True, the zip file will store both the path and the filename " & _
"of each file that is being zipped. As usual, the portion of a file's path that " & _
"is specified in the BasePath property will not be stored in the zip file. " & _
"When PreservePaths is set to False, only filenames (no paths) are stored."
Public Const cUseTempFileHint = "UseTempFile property:" & vbCrLf & _
"If set to true, all zipping operations will be performed on a temp file " & _
"located in the folder specified in the TempFolder property. Otherwise, the " & _
"operation is performed directly on the zip file without using a temp file. " & _
"You cannot remove files from an existing zip file, or update files already " & _
"in an existing zip files without setting this property to True."
Public Const cTempFolderHint = "TempFolder property:" & vbCrLf & _
"Location of the temp file when the UseTempFile property is set to True. " & _
"When you leave this property empty, the Windows default temp directory " & _
"is used."
Public Const cRequiredFileAttributesHint = "RequiredFileAttributes property:" & vbCrLf & _
"Bit-field value that specifies all attributes that a file must " & _
"have in order to be included in the process."
Public Const cExcludedFileAttributesHint = "ExcludedFileAttributes property:" & vbCrLf & _
"Bit-field value that specifies all attributes that a file must " & _
"NOT have in order to be included in the process."
Public Const cMinDateToProcessHint = "MinDateToProcess property:" & vbCrLf & _
"Minimum value of a file's 'Last modifed date' required in order to be " & _
"included in the process."
Public Const cMaxDateToProcessHint = "MaxDateToProcess property:" & vbCrLf & _
"Maximum value of a file's 'Last modifed date' required in order to be " & _
"included in the process."
Public Const cMinSizeToProcessHint = "MinSizeToProcess property:" & vbCrLf & _
"Minimum file size that a file must have in order to be " & _
"included in the process."
Public Const cMaxSizeToProcessHint = "MaxSizeToProcess property:" & vbCrLf & _
"Maximum file size that a file must have in order to be " & _
"included in the process."
Public Const cUnzipToFolderHint = "UnzipToFolder property:" & vbCrLf & _
"Destination folder for files being unzipped. In this sample, the PreservePaths " & _
"property is set to True, so if files are stored in the zip file with paths, " & _
"those stored paths will be recreated inside the destination folder specified " & _
"by the UnzipToFolder property."
Public Const cSkipIfExistingHint = "SkipIfExisting property:" & vbCrLf & _
"If the destination file (located in a zip file that is being updated, or " & _
"on disk when a zip file is being unzipped) already exists, and this " & _
"property is set to True, then the file won't be overwritten. This has the " & _
"effect of only processing files that don't exist in the destination zip file or " & _
"unzipping folder."
Public Const cSkipIfNotExistingHint = "SkipIfNotExisting property:" & vbCrLf & _
"Setting this property to True will cause only files that don't already " & _
"exist in the destination unzipping location (when unzipping) or the zip file " & _
"(when zipping) t